package cn.pegasus.teamwork.pegasus.service;

import java.util.Map;

import cn.pegasus.teamwork.pegasus.entity.BussUserConsumorder;
import cn.pegasus.teamwork.pegasus.mapper.BussUserConsumorderMapper;
import cn.iyizhan.teamwork.base.service.BaseService;
import cn.iyizhan.teamwork.base.util.PageObject;

/**
 * @author ryan.bian
 * @version 
 */
public interface BussUserConsumorderService extends BaseService<BussUserConsumorder,BussUserConsumorderMapper>  {

	//分页查询
	public PageObject<BussUserConsumorder> PageList(Map<String, Object> map);
	
	//查看详情
	public BussUserConsumorder findConsumInfo(Integer id);
	
	/**
	 * 充值创建订单
	 * @param map
	 * @param retype
	 * @param orderType
	 * @return
	 */
	public Map<String,Object> createUserRechage(Map<String, Object> map,int retype,int orderType);
	
	/**
	 * 充值创建订单
	 * @param map
	 * @param retype
	 * @param orderType
	 * @return
	 */
	public Map<String,Object> createUserRechageForApp(Map<String, Object> map,int retype,int orderType);
	
	
	/**
	 * 创建本地订单
	 * @param map
	 * @param retype
	 * @param orderType
	 * @return
	 */
	public String createConsumOrderVo(Map<String, Object> map, int retype, int orderType);
	
	/**
	 * 充值订单回调业务处理
	 * @param transaction_id
	 * @param orderBalance
	 * @param orderNo
	 * @return
	 */
	public boolean modifyRechargeOrder(String transaction_id,String orderBalance,String orderNo);
}
